package com.sc.study.foundation.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.sc.study.foundation.mapper.ScViolationTypeMapper;
import com.sc.study.foundation.domain.ScViolationType;
import com.sc.study.foundation.service.IScViolationTypeService;

/**
 * 违纪类型Service业务层处理
 * 
 * @author sc
 * @date 2022-03-14
 */
@Service
public class ScViolationTypeServiceImpl implements IScViolationTypeService 
{
    @Autowired
    private ScViolationTypeMapper scViolationTypeMapper;

    /**
     * 查询违纪类型
     * 
     * @param id 违纪类型主键
     * @return 违纪类型
     */
    @Override
    public ScViolationType selectScViolationTypeById(Long id)
    {
        return scViolationTypeMapper.selectScViolationTypeById(id);
    }

    /**
     * 查询违纪类型列表
     * 
     * @param scViolationType 违纪类型
     * @return 违纪类型
     */
    @Override
    public List<ScViolationType> selectScViolationTypeList(ScViolationType scViolationType)
    {
        return scViolationTypeMapper.selectScViolationTypeList(scViolationType);
    }

    /**
     * 新增违纪类型
     * 
     * @param scViolationType 违纪类型
     * @return 结果
     */
    @Override
    public int insertScViolationType(ScViolationType scViolationType)
    {
        return scViolationTypeMapper.insertScViolationType(scViolationType);
    }

    /**
     * 修改违纪类型
     * 
     * @param scViolationType 违纪类型
     * @return 结果
     */
    @Override
    public int updateScViolationType(ScViolationType scViolationType)
    {
        return scViolationTypeMapper.updateScViolationType(scViolationType);
    }

    /**
     * 批量删除违纪类型
     * 
     * @param ids 需要删除的违纪类型主键
     * @return 结果
     */
    @Override
    public int deleteScViolationTypeByIds(Long[] ids)
    {
        return scViolationTypeMapper.deleteScViolationTypeByIds(ids);
    }

    /**
     * 删除违纪类型信息
     * 
     * @param id 违纪类型主键
     * @return 结果
     */
    @Override
    public int deleteScViolationTypeById(Long id)
    {
        return scViolationTypeMapper.deleteScViolationTypeById(id);
    }
}
